> --- In DynoMotion@yahoogroups.com,
Tom Kerekes <tk@> wrote:>> Hi Cees,> >
I'm not sure how that is supposed to work in Mach3.ÂÂ
Do know where any information on Mach3 and THC is?>
> But most likely that was handled by the Mach3
Parallel Port Driver and will need to be replaced by a C
Program in KFLOP to watch the up/down signals and jog up
and down when it sees the up/down inputs. You will
need to add this into a loop that runs continuously at
the end of your Init.c (or whatever yours is called)
program.> > > What isn't clear to me is how you
enter and exit the THC mode vs normal Z motion mode.>
> To be able to move the Z axis independently in
KFLOP it must be removed from the coordinated motion
system.> DefineCoordSystem(0,1,-1,1); // Remove Z
from the Coordinate System> vs>
DefineCoordSystem(0,1,2,-1); // Keep Z in the
Coordinate System>  > > Coincidentally
someone from the Ukraine just asked me the same question
(within the hour)
> but he is using KMotionCNC. He came up
with:> > for(;;)> {>
WaitNextTimeSlice();> > if (ReadBit(0))  ÂÂ
          ÂÂ
          ÂÂ
      // if plasma is ON?>
{>  if (ReadBit(6))      ÂÂ
          ÂÂ
         //Up?>
{> Delay_sec(1.0);// Delay for error filter>
Jog(2,10000);      // Axis Z move
UP> while (!ReadBit(6)) ; > Jog(2,0); ÂÂ
 > while (!CheckDone(2))  ;  > > }>
else if (ReadBit(7))       ÂÂ
          ÂÂ
//DOWN?> {> Delay_sec(1.0);//Delay.>
Jog(2,-10000);      // Axis Z move
DOWN> while (!ReadBit(7)) ; > Jog(2,0); ÂÂ
 > while (!CheckDone(2))  ;  > > }>
}> > > Seems to me the delays are excessive
> and maybe in the wrong place, but it should be a
start.> > Regards> TK> > From: zeeschuim
atmolgers@> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, October 31, 2012 8:30 AM>
Subject: [DynoMotion] torch height control in Mach>
>  > HiPlasma table on Mach3I am using a
Hypertherm with a torch heigt control unit what give 3
ouputsignals torch on, torch up, torch down, these
signals are coupled on the Kanalog JP15 opto input
terminals, in mach3 they are in ports & pins inputs:
THC on: port2 input pin 13, THC up: port2 input pin 14
and THC down: port2 input pin 15.So far so good I can
see they are working in the Mach3 diagnose screen.But
there is no up and down movement of the Z axe.Do I need
to write something for notifying the
Kflop?thanks,Cees>
>